using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using IGlobalist.LectureService;
namespace IGlobalist
{
    public partial class FrmOptions : Form
    {
        public FrmOptions()
        {
            InitializeComponent();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            SessionSettings ss = new SessionSettings();
            ss.MaxFileSize = (int) nudMaxFileSize.Value;
            ss.MaxMembers = (int)nudMaxMembers.Value;
            ss.MemberCanSendDesktop = chkSendDesktop.Checked;
            ss.MemberCanSendFile = chkSendFile.Checked;
            ss.MemberCanSendVoice = chkSendVoice.Checked;
            ss.MemberCanSendWebcam = chkSendWC.Checked;
            Global.Svc.SetSessionSettings(ss);
            Global.Settings = ss;
            this.Close();
        }
    }
}